package cn.glutnn.subject.infra.basic.service.impl;

import cn.glutnn.subject.infra.basic.entity.SubjectCategory;
import cn.glutnn.subject.infra.basic.mapper.SubjectCategoryMapper;
import cn.glutnn.subject.infra.basic.service.SubjectCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * (SubjectCategory)表服务实现类
 *
 * @author msh
 * @since 2024-11-20 15:42:42
 */
@Service("subjectCategoryService")
public class SubjectCategoryServiceImpl extends ServiceImpl<SubjectCategoryMapper, SubjectCategory> implements SubjectCategoryService {
    @Resource
    private SubjectCategoryMapper subjectCategoryMapper;

    @Override
    public Integer querySubjectCountByCategoryId(Long id) {
        return subjectCategoryMapper.querySubjectCountByCategoryId(id);
    }
}

